$OpenBSD: patch-Makefile_in,v 1.2 2010/03/20 16:53:53 jasper Exp $

- Port to GTK+2. From Gentoo.
- set CFLAGS and LIBS correctly.

--- Makefile.in.orig	Sun Aug  7 18:44:33 2005
+++ Makefile.in	Sun Aug  7 18:46:01 2005
@@ -3,8 +3,8 @@ VER = 0.97
 
 CC = @CC@
 DEFS = -DVERSION=\"$(VER)\" @DEFS@
-CFLAGS = -s -O3 -Wall -pipe `gtk-config --cflags`
-LIBS = `gtk-config --libs` @LIBS@
+CFLAGS += `pkg-config --cflags gtk+-2.0`
+LIBS += `pkg-config --libs gtk+-2.0` @LIBS@
 
 prefix = @prefix@
 exec_prefix = @exec_prefix@
@@ -29,8 +29,8 @@ distclean: clean
 	rm -f Makefile config.h config.status config.cache config.log 
 
 install: otpCalc otpCalc.1
-	install -m 755 -o root -g root otpCalc $(bindir)/$(NAME)
-	install -m 644 -o root -g root otpCalc.1 $(mandir)/man1/$(NAME).1
+	${BSD_INSTALL_PROGRAM} otpCalc $(bindir)/$(NAME)
+	${BSD_INSTALL_MAN} otpCalc.1 $(mandir)/man1/$(NAME).1
 
 dist: distclean
 	( cd ..; \
